import React, {Component, PropTypes} from 'react';
import gif from './images/loading.gif';

class Loading extends Component {
    static propTypes = {
        style: PropTypes.Object
    }
    render() {
        let {style, ...props} = this.props;
        return (
            <div {...props} style={Object.assign(style || {}, {textAlign: 'center'})}>
                <img src={gif} style={{margin: 'auto auto'}}/>
            </div>
        );
    }
}

Loading.propTypes = {

};

export default Loading;